        <h3>Upload Invoice</h3>
        <h4>Upload and send invoice to client.</h4>
		
		<form id="uploadinvoice" action="../inc/process-invoice.php" method="post" enctype="multipart/form-data">
			<label for="c_id">Client:</label><br />
			<select name="c_id" id="c_id">      
				<option value="">Choose One...</option>
				<?php
					// query for getting categories
					$query = 'SELECT fname,lname,c_id FROM clients ORDER BY fname DESC';
					$result = mysql_query($query) or die(mysql_error());
					while($row = mysql_fetch_array($result)){
						print '<option value="'.$row['c_id'].'">'.$row['fname'].' '.$row['lname'].'</option>'."\n";
					}
				?>
			</select><br />
			<div class="project">
				<label for="p_id">Select Project:</label><br />
				<select name="p_id" id="p_id"></select><br />
			</div>
			<label for="title">Title:</label><br />
			<input type="text" name="title" id="title" class="text" /><br />
			<label for="invoices">Upload Invoice: </label><br /><input type="file" name="invoices" id="invoices" /><br />
			<label for="comments">Comments:</label><br />
			<textarea name="comments" id="comments"></textarea><br />
			<button type="submit" class="button positive"> <img src="../images/icons/tick.png" alt=""/> Upload Invoice </button>
		</form>
		<div class="success" style="display:none;">
        	Invoice has been uploaded and sent to client.
        </div>
		<div id="output"></div>
